#include "../../sleek/node/billboard/sprite.h"
#include "sprite.h"

using namespace sleek;
using namespace core;
using namespace device;

Sprite::Sprite(sleek::core::engine::engine *engine) : Entity()
{
    phy = 0;
    path = "sprite";
    current = 0;
    env = new sleek::node::billboard::Sprite(engine);
    ((node::billboard::Sprite*)env)->setTimer(50);
}
Sprite::~Sprite()
{
}
void Sprite::update(b2Vec2 i, float r)
{
    Entity::update(i+offset,r);
}
void Sprite::setAnimation(unsigned char i)
{
    ((node::billboard::Sprite*)env)->setArray(sprite[i]);
    current = i;
}
void Sprite::setAnimation(sleek::core::math::array<sleek::texture::texture*> i)
{
    ((node::billboard::Sprite*)env)->setArray(i);
}
void Sprite::loadSprite()
{
}
